<% if ['diagnostic']['status'].to_s = '200' %>
    alert('berhasil di hapus');
<% else %>
    alert('something went wrong');
<% end %>